#ifndef WIDGET_H
#define WIDGET_H

#include <QPushButton>
#include <QWidget>

#include "subwidget.h"

class Widget : public QWidget {
  Q_OBJECT

 public:
  Widget(QWidget *parent = nullptr);
  ~Widget();
  void mySlot();
  void changeWin();
  void dealSub();
  void dealSlot(int, QString);  //槽函数

 private:
  QPushButton b1;
  QPushButton *b2;
  SubWidget w;  //定义子窗口对象
  QPushButton b3;
};
#endif  // WIDGET_H
